package com.shigen.demo.pattern.template;

/**
 * @author shigenfu
 * @date 2023/10/7 12:47 下午
 */
public abstract class AbstractClass {

    public void template() {
        stepOne();
        stepTwo();
        stepThree();
    }

    protected void stepOne() {
        System.out.println("step one");
    }

    protected abstract void stepTwo();

    protected void stepThree() {
        System.out.println("step three");
    }
}
